<?php

namespace app\api\controller;

use app\common\controller\Api;
use app\api\logic\FaqLogic;

/**
 * FAQ API
 */
class Faq extends Api
{
    protected $noNeedLogin = ['*'];
    protected $noNeedRight = ['*'];

    /**
     * 获取FAQ列表（不分页）
     * @ApiMethod (GET)
     */
    public function getList()
    {
        $params = $this->request->get();
        $logic = new FaqLogic();
        $data = $logic->getList($params);
        $this->success('ok', $data);
    }
} 